const cookie = {
  read(name: string): string | null {
    const result = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
    return result ? decodeURIComponent(result[3]) : null;
  }
};
export default cookie;
